package com.gwsdk.paysdk.acitvityV2.fragment;

import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;

import com.gwsdk.paysdk.utils.GWInflaterUtils;


public class GWNoticeDetailsFragment extends GWBaseFragment{

    private ImageView backItem;
    private WebView webView;
    @Override
    public int setContentView() {
        return GWInflaterUtils.getLayout(getActivity(),"gw_fragment_notice_details");
    }

    @Override
    public void initView(View view) {
        String viewUrl = getArguments().getString("viewUrl");

        backItem = view.findViewById(GWInflaterUtils.getControl(getActivity(),"btn_back"));
        backItem.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });

        webView = view.findViewById(GWInflaterUtils.getControl(getActivity(),"gw_web_view"));
        webView.setBackgroundColor(0);
        webView.loadUrl(viewUrl);
    }
    @Override
    public void getData() {

    }
}
